package API.Arrays;

import java.util.Arrays;

public class Basis {
    public static void main(String[] args) {
        int[] arr = { 1, 9, 3, 4, 2, 6, 7, 8, 5, 10 };
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(Arrays.copyOf(arr, 5)));
        System.out.println(Arrays.toString(Arrays.copyOfRange(arr, 5, 10)));
        int[] arr2 = new int[10];
        Arrays.fill(arr2, 100);
        System.out.println(Arrays.toString(arr2));
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
